package com.tsu.mall.common.service;

import com.tsu.mall.common.VO.LayuiTableVO;
import com.tsu.mall.common.VO.ResultVO;
import com.tsu.mall.common.entity.Member;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author tttttt
 * @since 2023-03-22
 */
public interface IMemberService extends IService<Member> {
    LayuiTableVO doList(Integer page, Integer limit, String memberNumber,String memberPhone);


    LayuiTableVO selectById(Integer id);

    ResultVO updateByStatus(Integer status,Integer id);

    void updatePassword(Integer id);


    Boolean check(String accountNumber, String password);

    Member doSelectById(Integer id);

    String selectAccountNumber(String accountNumber,Integer id);

    void updateMemberAvatar(String avatar, Integer id);

    String selectCurrentAvatar(Integer id);

    LayuiTableVO updatePasswordByMemberId(Integer id,String prePassword, String newPassword, String confirmPassword);

    Member selectPhoneById(String phone);

    LayuiTableVO reg(String code, String username, String phone, String password, String confirmPassword);
}
